package library;

public class DefaultDeck extends CardStack
{
	public DefaultDeck()
	{
		initialSetup();
	}
	
	public void initialSetup()
	{
		// Suits: 	S = Spades, H = Hearts, D = Diamonds, C = Clubs
		// Values: 	A, 2, 3, 4, 5, 6, 7, 8, 9, 10, J, Q, K
		setup(	"SA, S2, S3, S4, S5, S6, S7, S8, S9, S10, SJ, SQ, SK "
				+	"HA, H2, H3, H4, H5, H6, H7, H8, H9, H10, HJ, HQ, HK "
				+	"DA, D2, D3, D4, D5, D6, D7, D8, D9, D10, DJ, DQ, DK "
				+	"CA, C2, C3, C4, C5, C6, C7, C8, C9, C10, CJ, CQ, CK");
		for (int i = 0; i < 4; i++) {
			for (int j = 0; j < 13; j++) {
				cards[i*13 + j].value = j + 1;
			}
		}
	}
	
	/*
	public DefaultDeck(String option)
	{
		if(option.equalsIgnoreCase("shuffle")){
			initialSetup();
			shuffle();
		}
	}
	*/
}